package com.ganzi.manager.service;

import com.ganzi.manager.model.User;

import java.util.List;

public interface UserService {

    public User findUserByName(String name) throws Exception;
    public User findUserByid(long id) throws Exception;
    public void regist(String name, String pass, long roleId) throws Exception;
    public void loginLog(User user) throws Exception;
    public void changePassWord(String password) throws Exception;
    public void updateRandom(User use)throws Exception;
    public List<User> findAllUser()throws Exception;
    public void lockUser(long id, int lock) throws Exception;
    public void changeRole(long id, long role) throws Exception;
}
